package com.haima.ziliao.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.haima.ziliao.mapper.PLvxingsheMapper;
import com.haima.ziliao.domain.PLvxingshe;
import com.haima.ziliao.service.IPLvxingsheService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * 旅行社Service业务层处理
 * 
 * @author hima
 * @date 2024-12-21
 */
@Service
public class PLvxingsheServiceImpl extends ServiceImpl<PLvxingsheMapper, PLvxingshe> implements IPLvxingsheService
{
    @Autowired
    private PLvxingsheMapper pLvxingsheMapper;

    /**
     * 查询旅行社
     * 
     * @param id 旅行社主键
     * @return 旅行社
     */
    @Override
    public PLvxingshe selectPLvxingsheById(Long id)
    {
        return pLvxingsheMapper.selectPLvxingsheById(id);
    }

    /**
     * 查询旅行社列表
     * 
     * @param pLvxingshe 旅行社
     * @return 旅行社
     */
    @Override
    public List<PLvxingshe> selectPLvxingsheList(PLvxingshe pLvxingshe)
    {
        return pLvxingsheMapper.selectPLvxingsheList(pLvxingshe);
    }

    /**
     * 新增旅行社
     * 
     * @param pLvxingshe 旅行社
     * @return 结果
     */
    @Override
    public int insertPLvxingshe(PLvxingshe pLvxingshe)
    {
        return pLvxingsheMapper.insertPLvxingshe(pLvxingshe);
    }

    /**
     * 修改旅行社
     * 
     * @param pLvxingshe 旅行社
     * @return 结果
     */
    @Override
    public int updatePLvxingshe(PLvxingshe pLvxingshe)
    {
        return pLvxingsheMapper.updatePLvxingshe(pLvxingshe);
    }

    /**
     * 批量删除旅行社
     * 
     * @param ids 需要删除的旅行社主键
     * @return 结果
     */
    @Override
    public int deletePLvxingsheByIds(Long[] ids)
    {
        return pLvxingsheMapper.deletePLvxingsheByIds(ids);
    }

    /**
     * 删除旅行社信息
     * 
     * @param id 旅行社主键
     * @return 结果
     */
    @Override
    public int deletePLvxingsheById(Long id)
    {
        return pLvxingsheMapper.deletePLvxingsheById(id);
    }
}
